<div class="html">
    <?php echo html_entity_decode($section->getFlatSection()->getHtml()) ?>
</div>
<?php for ($i = 1; $i <= $section->getPositionCount(); $i++): ?>
    <?php if(isset($elements[$i])): ?>
        <?php include_partial('render'.$elements[$i]->getType()->getType(),
                array(
                    strtolower($elements[$i]->getType()->getType()) => $elements[$i],
                    'portal' => $portal,
                    'hasBigScreen' => $hasBigScreen
                ))?>
    <?php endif; ?>
    <?php if($i != $section->getPositionCount()): ?>
        <hr class="separator">
    <?php else: ?>
        <br>
    <?php endif; ?>
<?php endfor;?>